package com.fast.entity;

import java.time.LocalDateTime;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 部门表(Dept)表实体类
 *
 * @author hjw
 * @since 2021-12-02 23:42:33
 */
@Data
@TableName("sys_dept")
@ApiModel(value="Dept",description="部门表实体类")
public class Dept extends Model<Dept> implements Serializable {

                        
    @TableId(type=IdType.ID_WORKER)
    @ApiModelProperty(name = "id", value = "部门id")
    private Long id;
                        
    @ApiModelProperty(name = "parentId", value = "父部门id")
    private Long parentId;
                        
    @ApiModelProperty(name = "ancestors", value = "祖级列表")
    private String ancestors;
                        
    @ApiModelProperty(name = "deptName", value = "部门名称")
    private String deptName;
                        
    @ApiModelProperty(name = "orderNum", value = "显示顺序")
    private Integer orderNum;
                        
    @ApiModelProperty(name = "leader", value = "负责人")
    private String leader;
                        
    @ApiModelProperty(name = "phone", value = "联系电话")
    private String phone;
                        
    @ApiModelProperty(name = "email", value = "邮箱")
    private String email;
                        
    @ApiModelProperty(name = "status", value = "部门状态（0正常 1停用）")
    private String status;
                        
    @ApiModelProperty(name = "delFlag", value = "删除标志（0代表存在 2代表删除）")
    private String delFlag;
                        
    @ApiModelProperty(name = "createBy", value = "创建者",hidden=true)
    private String createBy;
                        
    @ApiModelProperty(name = "createTime", value = "创建时间",hidden=true)
    private LocalDateTime createTime;
                        
    @ApiModelProperty(name = "updateBy", value = "更新者",hidden=true)
    private String updateBy;
                        
    @ApiModelProperty(name = "updateTime", value = "更新时间",hidden=true)
    private LocalDateTime updateTime;
    
    private static final long serialVersionUID = -39029067829076630L;
}